All Functions of Week 2

library

{base}

Load an R package

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

leveneTest

{car}

Computes Levene’s test for homogeneity of variance across groups.

c

{base}

Combine values/vectors into a vector

ordered

{dplyr}

Create an ordered factor

cut

{base}

Convert Numeric to Factor

mutate

{dplyr}

Modify/create a column in a data frame

prop.test

{stats}

Test of Equal or Given Proportions

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

setwd

{base}

Set Working Directory

mean

{base}

Get mean of a vector

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

median

{stats}

Get median of a vector

The end!